package com.lslx.ln.sample.annotation.customer.comp;

import com.lslx.ln.sample.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

/**
 * <pre>
 *  DemoServiceComponent
 * </pre>
 *
 * @Author zhangj
 * @Date 2022/6/27 11:52
 */
@Component("demoServiceComponent")
public class DemoServiceComponent implements DemoService {

    @DubboReference
    private DemoService demoService;

    @Override
    public String sayHello(String name) {
        return demoService.sayHello(name);
    }
}
